<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.css}">
    <script th:src="@{/webjars/jquery/1.11.1/jquery.js}"></script>
    <script th:src="@{/webjars/bootstrap/3.3.7/js/bootstrap.js}"></script>
</head>
<body>
<h1>从这里登录系统</h1>
    <form class="form-inline" action="login" method="post">
        <label>用户名：</label>
        <!--    <%&#45;&#45;type定义输入框的类型，name决定HTTP请求参数名&#45;&#45;%>-->
        <input class="form-control" type="text" name="username">
        <label>密码：</label>
        <input class="form-control" type="password" name="password">
        <button class="btn btn-primary">登录</button>
        <label>没有账号？去注册<a class="btn btn-link" th:href="@{/register}">注册</a></label>
    </form>
    <p style="color: red" th:text="${login_error}"></p>
</body>
</html>